﻿using Myotragus.Data.Criteria;
using Myotragus.Store.Model.Tests.Domain;
using NUnit.Framework;

namespace Myotragus.Store.Model.Tests
{
  [TestFixture]
  public class ProjectionsFixtures
  {
    [SetUp]
    public void SetUp()
    {
      FixtureHelper.InitializeServices();
      FixtureHelper.InitializeEntities(new[]{typeof(ILocalizableObject)});
    }

    [Test]
    public void Start()
    {
      var localizable = FixtureHelper.Container
        .Resolve<ILocalizableEntityProjector<ILocalizableObject>>();
      Assert.IsNotNull(localizable.GetProjection(null));

      var deflocalizable = FixtureHelper.Container
        .Resolve<IDefaultsLocalizableEntityProjector<ILocalizableObject>>();
      Assert.IsNotNull(deflocalizable.GetProjection(null));
    }
  }
}
